//
//  ARKitManager.h
//  Charles
//
//  Created by Leo on 2019/8/13.
//  Copyright © 2019 charles. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ARKit/ARKit.h>
NS_ASSUME_NONNULL_BEGIN
@class ARKitView;


typedef enum : NSUInteger {
    ARTrackingConfigurationTypeDetectionImage, //图片识别
    ARTrackingConfigurationTypePlaneDetection, //平面捕捉
    ARTrackingConfigurationTypeFaceTracking,   //人脸识别
    ARTrackingConfigurationTypeFaceTrackingBlendShapes,//表情检测
} ARTrackingConfigurationType;

@interface ARKitManager : NSObject

@property (nonatomic, strong, readonly) ARWorldTrackingConfiguration *worldConfiguration;    //AR世界追踪
@property (nonatomic, strong, readonly) ARConfiguration *faceConfiguration;     //人脸识别追踪

+ (instancetype)sharedInstance;

- (void)startTrackingWithARView:(ARKitView *)arView trackingType:(ARTrackingConfigurationType)trackingType;

@end

NS_ASSUME_NONNULL_END
